//
//  BZ_GHS_CacuCycleNote.m
//  penzer
//
//  Created by caiyc on 2018/11/20.
//  Copyright © 2018年 caiyc. All rights reserved.
//

#import "BZ_GHS_CacuCycleNote.h"

@implementation BZ_GHS_CacuCycleNote

/*
// Only override drawRect: if you perform custom drawing.
// An empty implementation adversely affects performance during animation.
- (void)drawRect:(CGRect)rect {
    // Drawing code
}
*/
+(instancetype)ShareNoteView{
    return [[NSBundle mainBundle] loadNibNamed:NSStringFromClass([self class]) owner:nil options:nil].lastObject;
}
-(void)show{
    [[[UIApplication sharedApplication]keyWindow]addSubview:self];
}
-(void)miss{
    [self removeFromSuperview];
}
-(void)awakeFromNib{
    [super awakeFromNib];
    self.contentView.layer.cornerRadius = 5;
    self.timeView.layer.cornerRadius = 5;
    self.contentView.layer.masksToBounds = 1;
    self.timeView.layer.masksToBounds =1;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(miss)];
    [self addGestureRecognizer:tap];
}
@end
